﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DelegatesAndEventsExercise
{
    public class PropertyChangedEventArgs : EventArgs
    {
        string name;
        object oldValue;
        object newValue;

        public PropertyChangedEventArgs(string name, object oldValue, object newValue)
        {
            this.name = name;
            this.oldValue = oldValue;
            this.newValue = newValue;
        }

        public string Name
        {
            get
            {
                return name;
            }
        }

        public object OldValue
        {
            get
            {
                return oldValue;
            }
        }

        public object NewValue
        {
            get
            {
                return newValue;
            }
        }
    }
}
